#pragma once
#include "CObject.h"
#include <vector>
#include "Toolbullet.h"
#include <fstream>

using namespace std;

class Character : public CObject
{
protected:
	float m_TimeShoot;// thoi gian aniamtion ban
	float m_TimeJump;// thoi gian animation nhay

	vector<ObjectTittle> m_positionShootAtSprite; // vector quan ly toa do sung cua cac anh cua nhan vat dung sung
	ShootDirection m_shootDirection; // huong ban

	TypeMove m_TypeMove;
	IDGun m_IdGun;

	// kho sung
	Toolbullet *m_ToolBullet;
	float m_Gravity;
public:
	Character();
	virtual void Draw(LPD3DXSPRITE SpriteHandler);
	void loadPositionGunAtSprite(char *Path);
	virtual void UpdateCollisionMap(vector<ObjectTittle> &NodeTitle);
	virtual void UpdateCollisionEnemy(){};
	virtual void UpdateAnimation(float X, float Y){};
	void setGun(IDGun gun);
	virtual ~Character();
};

